import Network from "@/api/network";

/**
 * 查询字典表列表
 * @param data
 * @returns {Promise | Promise<unknown>}
 */
export const queryDishesDictList = (data) => Network.post('/sys/dishesDict/queryDishesDictList', data);

/**
 * 保存字典
 * @param data
 * @returns {Promise | Promise<unknown>}
 */
export const saveOrUpdateDishesDict = (data) => Network.post('/sys/dishesDict/saveOrUpdateDishesDict', data);

/**
 * 根据id查询
 * @param data
 * @returns {Promise | Promise<unknown>}
 */
export const getByIdDishesDict = (data) => Network.get('/sys/dishesDict/getByIdDishesDict', data);

/**
 * 删除
 * @param data
 * @returns {Promise<unknown>}
 */
export const removeByIdDishesDict = (data) => Network.delete('/sys/dishesDict/removeByIdDishesDict', data);


/**
 * 查询参数列表
 * @param data
 * @returns {Promise<unknown>}
 */
export const parameterList = (data) => Network.get('/sys/dishesDict/parameterList', data);

/**
 * 查询参数列表
 * @param data
 * @returns {Promise<unknown>}
 */
export const getDictType = (data) => Network.get('/sys/dishesDict/getDictType', data);
